#ifndef STATES_H
#define STATES_H
#define STATE_INIT 0
#define STATE_MENU 1
#define STATE_FILEIO 2
#define STATE_INITNOTPAD 3
#define STATE_NOTEPAD 4
#define STATE_SAVE_INIT 5
#define STATE_SAVE_INPUT 6
#define STATE_SAVE 7
#define STATE_EXIT 8

#define BUFFER_SIZE (100 * 1024)

int s_state;
int txtlen;
unsigned char* txtbuffer;
int isSave;
void UpdateAppState();
void SetState();
#endif